package com.atguigu.gulimall.cart.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author 小坏
 * @Date 2021/1/29 15:28
 * @Version 1.0
 * @program: 父工程 gulimall 万物起源之地
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);


    @RequestMapping("/product/skusaleattrvalue/stringlist{skuId}")
     List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);


    @RequestMapping("/product/skuinfo/{skuId}/price")
    R getPrice(@PathVariable("skuId") Long skuId) ;

}
